home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 October: Mac OS SDK / Dev.CD Oct 96 SDK / Dev.CD Oct 96 SDK2.toast / Development Kits (Disc 2) / OpenDoc / OpenDoc Development / Debugging Support / OpenDoc Source Code / Memory / MemMgrPv.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-04-22  |  1.4 KB  |  75 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        MemMgrPv.h
  3.  
  4.     Contains:    Private API for memory manager
  5.  
  6.     Owned by:    Jens Alfke
  7.  
  8.     Copyright:    © 1994 - 1995 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.     
  12.          <4>      8/4/95    DM        Leak detection [1267956]
  13.          <3>    10/24/94    jpa        Constness [1194286].
  14.          <2>     9/29/94    RA        1189812: Mods for 68K build.
  15.          <1>     9/14/94    jpa        first checked in
  16.  
  17.     To Do:
  18.     In Progress:
  19.         
  20. */
  21.  
  22.  
  23. #ifndef _MEMMGRPV_
  24. #define _MEMMGRPV_
  25. #pragma once
  26.  
  27. #ifndef _MEMMGR_
  28. #include "MemMgr.h"
  29. #endif
  30.  
  31. #ifndef _BESTFITH_
  32. #include "BestFitH.h"
  33. #endif
  34.  
  35.  
  36. struct MemHeap {        // All this does is keep scpp quiet; this is a bogus type
  37. };
  38.  
  39.  
  40. class BestFitHeap;
  41.  
  42.  
  43. //==============================================================================
  44. // GLOBAL VARIABLES
  45. //==============================================================================
  46.  
  47. extern MMBoolean     gHaveSOM;            // Is SOM installed?
  48.  
  49. extern BestFitHeap    *gDefaultHeap;
  50.  
  51.  
  52. #if MM_DEBUG
  53. extern MMBoolean gValidate;
  54. extern MMBoolean gHeapChecking;
  55. #endif
  56.  
  57.  
  58. #ifdef MEASURE_SOM
  59. extern size_t gSOMTotal;
  60. #endif
  61.  
  62.  
  63. //==============================================================================
  64. // FUNCTIONS
  65. //==============================================================================
  66.  
  67.  
  68. const char*    BasicValidatePtr( const void *p, MMBoolean mustBeInHeap = kMMTrue );
  69.  
  70. BestFitHeap* GetHeap( const void* block, const char *op );
  71.  
  72.  
  73.  
  74.  
  75. #endif